﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StateGrid;
using StateGrid.User;
using StateGrid.GlobalVariables;

public partial class Success : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            Boolean login = UserManageDAO.IsLogin((User)Session["login"]);
            if (login)
            {
                this.InitData();
            }
            else
            {
                Response.Write(" <script> top.location = '" + GlobalResource.LOGIN_PAGE + "' </script> ");
                return;
            }
        }
    }

    /// <summary>
    /// 初始化信息
    /// </summary>
    private void InitData()
    {
        this.messageLabel.Text = (String)Request["message"];
    }
}